package com.easondongh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * CREATE TABLE `dbtest`.`tb_score_record`  (
 *   `id` bigint(20) NOT NULL,
 *   `user_id` bigint(20) NULL DEFAULT NULL,
 *   `score` int(11) NOT NULL,
 *   PRIMARY KEY (`id`) USING BTREE
 * ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
 * @author donghao
 * @date 2022/9/6 20:50
 */
@TableName(value = "tb_score_record")
public class ScoreRecord {

    @TableId
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    private Integer score;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "ScoreRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", score=" + score +
                '}';
    }
}
